package com.last1mile.dao.mock;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import com.last1mile.dao.interfaces.StateDao;
import com.last1mile.pojo.StateDO;

//@Component("stateDao")
public class StateDaoImplMock implements StateDao {
	@Override
	public List<StateDO> selectByStateUpId(String stateUpId)
			throws SQLException {
		List<StateDO> records = new ArrayList<StateDO>();
		StateDO stateDO = new StateDO();
		stateDO.setAreacode("0571");
		stateDO.setCnName("浙江");
		stateDO.setEnName("zhejiang");
		stateDO.setId(1);
		stateDO.setStateId("001001");
		stateDO.setStateType("省");
		stateDO.setStateUpId("001");
		stateDO.setZipcode("310000");
		records.add(stateDO);
		return records;
	}

	@Override
	public int deleteByPrimaryKey(Integer id) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void insert(StateDO record) throws SQLException {
		// TODO Auto-generated method stub

	}

	@Override
	public StateDO selectByPrimaryKey(Integer id) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByPrimaryKey(StateDO record) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKeySelective(StateDO record) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

}
